import store from "@/store";
import dayjs from 'dayjs';
console.log(88);
export const formItemStyle = {
  paddingLeft: "20px",
};

export const cellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表头单元格样式
export const headerCellStyle = {
  background: "rgba(28, 155, 252, 0.02)",
  color: "rgb(142, 155, 185)",
  textAlign: "center",
};

// 表格内表单子样式
export const tableFormStyle = {
  marginBottom: 0,
};
 
export const tableBase = [ 
  {
    label: "目的地",
    prop: "destinationName",
    width: 150,
    operate: { 
      type: "select", 
      field: 'destinationId', 
      optionsKey: "destinationName",
      optionsValue: "destinationId",
      options: store.state.custom_dict.destination,
    },
  }, 
  {
    label: "时效",
    prop: "timeEfficiencyName",
    width: 300,
    operate: {
      required:true,
      type: "select",
      field: "timeEfficiencyId", 
       optionsKey: "name",
      optionsValue: "id",
      options: store.state.custom_dict.timely,  
    },
  }, 
  {
    label: "开始金额",
    prop: "startAmount", 
    width: 150,
    operate: {
      type: "input",
      field: "startAmount", 
    },
  }, 
  {
    label: "结束金额",
    prop: "endAmount", 
    width: 150,
    operate: {
      type: "input",
      field: "endAmount", 
    },
  }, 
  {
    label: "到付手续费",
    prop: "collectionFee", 
    width: 150,
    operate: {
      type: "input",
      field: "collectionFee", 
    },
  },  
  {
    label: "创建时间",
    prop: "createTime", 
    width: 150, 
  },
  {
    label: "创建人",
    prop: "createBy",
    width: 200,  
  }, 
  {
    label: "是否有效",
    prop: "status",
    slotName:'status'
  },
];
 
